package com.college.action;

import org.hibernate.Session;

import com.college.entity.Result;
import com.college.entity.User;
import com.college.service.UserService;

public class UserAction extends BaseAction {
	public User getUser() {
		return user;
	}
	public void setUser(User user) {
		this.user = user;
	}
	public void setUserService(UserService userService) {
		this.userService = userService;
	}
	private User user;
	private UserService userService;
	public void login(){
		Result<User> result=userService.queryToLogin(user);
		 print(result, "pwd");
	}
	public void register(){
		Result<Boolean> result=userService.register(user);
		print(result);
	}
	public void update() {
		Result<Boolean> result=userService.updatePassword(user);
		print(result);
	}
}
